// interface 定义引用类型
// type : 定义基础类型
// type num = number
// let n: num = 2
// type定义基础联合类型的时候只能取共有的类型属性
// type BaceType = number | string | symbol

// let b: BaceType = Symbol()


// type定义联合类型
// interface Car { brandNo: string }
// interface Plance { No: string, brandNo: string }
// type TypeVechile = Car | Plance
// let vechile: TypeVechile = { No: '001S', brandNo: '飞机' }

// 元祖
// interface Car { brandNo: string }
// interface Plance { No: string, brandNo: string }
// type TypeVechile = [Car, Plance]
// let vechile: TypeVechile = [{brandNo: 'aoerao'},{ No: '001S', brandNo: '飞机' }]

// type 定义交叉类型
interface Car { brandNo: string }
interface Plance { No: string, brandNo: string }
type TypeVechile = Car & Plance
let vechile: TypeVechile = {brandNo: 'aoerao', No: '001S'}

export{}